package io.adrainty.bolee.security.models.constants;

/**
 * <p>UserConstants</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description UserConstants
 * @since 2025/8/7 11:40:39
 */
public class UserConstants {

    private UserConstants() {
    }

    public static final String CACHE_PREFIX = "user:";

    // 缓存父包
    public static final String BASIC = CACHE_PREFIX + "basic";

    // 分布式锁前缀
    public static final String LOCK_PREFIX = CACHE_PREFIX + "lock:";

    // page分页
    public static final String PAGE = CACHE_PREFIX + "page";

    // list下拉框
    public static final String LIST = CACHE_PREFIX + "list";

    // 用户登录
    public static final String LOGIN = CACHE_PREFIX + "login";

    // 用户数据
    public static final String DATA_SECURITY = CACHE_PREFIX + "data:security";

    // 建立用户与会话唯一标识之间的关系,用于判断剔除
    public static final String USER_TOKEN = CACHE_PREFIX + "user-token:";

    // 建立会话唯一标识与jwtToken之间的关系,用于令牌续期
    public static final String JWT_TOKEN = CACHE_PREFIX + "jwt-token:";

}
